Remove globalopts.objective dependency.
authoroliskoli <oliskoli>
Tue, 20 Feb 2007 20:55:25 +0000 (20:55 +0000)
committeroliskoli <oliskoli>
Tue, 20 Feb 2007 20:55:25 +0000 (20:55 +0000)
tef_xml.c

index 9308f20363966a960e8e61107701324b683e717d..dbc58ea3f3b14977c48d557087ab44ebf64626cf 100644 (file)
--- a/tef_xml.c
+++ b/tef_xml.c
@@ -104,23 +104,20 @@ tef_header(const char *args, const char **attrv)
 {
        const char **avp = &attrv[0];
 
-       if (global_opts.objective == rtedata)
+       route = route_head_alloc();
+       while (*avp) 
        {
-           route = route_head_alloc();
-           while (*avp) 
+           if (strcmp(avp[0], "Name") == 0) 
+           {
+               route->rte_name = xstrdup(avp[1]);
+           }
+           else if (strcmp(avp[0], "Software") == 0) 
            {
-               if (strcmp(avp[0], "Name") == 0) 
-               {
-                   route->rte_name = xstrdup(avp[1]);
-               }
-               else if (strcmp(avp[0], "Software") == 0) 
-               {
-                   route->rte_desc = xstrdup(avp[1]);
-               }
-               avp+=2;
+               route->rte_desc = xstrdup(avp[1]);
            }
-           route_add_head(route);
+           avp+=2;
        }
+       route_add_head(route);
 }
 
 /*